﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;
using CopySniffer.UI.Core.Views;
using CopySniffer.UI.Core.Controlers;
using CopySniffer.UI.Core;

namespace CopySniffer.UI.Views.WindowsForms
{
    partial class AboutView : BaseForm, IAboutView
    {
        public AboutView()
        {
            InitializeComponent();
            //this.Text = String.Format("About {0}", AssemblyTitle);
            //this.labelProductName.Text = AssemblyProduct;
            //this.lblVersion.Text = String.Format("v. {0}", AssemblyVersion);
            //this.labelCopyright.Text = AssemblyCopyright;
            //this.labelCompanyName.Text = AssemblyCompany;
            //this.textBoxDescription.Text = AssemblyDescription;
        }

        #region IAboutView Members

        public string VersionText
        {
            get
            {
                return lblVersion.Text;
            }
            set
            {
                lblVersion.Text = value;
            }
        }

        public string ContributorsHtml
        {
            get
            {
                return wbContributors.DocumentText;
            }
            set
            {
                wbContributors.DocumentText = value;
            }
        }

        #endregion

        #region IView<AboutControler> Members

        public AboutControler Controler
        {
            get;
            set;
        }

        #endregion

        void IView<AboutControler>.Show()
        {
            ShowDialog();
        }
    }
}
